/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrmPrincipal.java
 *
 * Created on 23/04/2013, 22:47:59
 */
package br.edu.ifal.newnews.gui;

import java.awt.Frame;
import javax.swing.JFrame;

/**
 *
 * @author kaline
 */
public class FrmPrincipal extends javax.swing.JFrame {

    /**
     * Creates new form FrmPrincipal
     */
    public FrmPrincipal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem1 = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMenu6 = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        jFrame1 = new javax.swing.JFrame();
        jPanel1 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        mnCadastro = new javax.swing.JMenu();
        mnuCadastreme = new javax.swing.JMenuItem();
        mnMeuMomento = new javax.swing.JMenu();
        mnuPostar = new javax.swing.JMenuItem();
        mnuCadastrarCategorias = new javax.swing.JMenuItem();
        mnForúm = new javax.swing.JMenu();
        mnuParticipar = new javax.swing.JMenuItem();
        mnPesquisar = new javax.swing.JMenu();
        mnuPostagem = new javax.swing.JMenuItem();
        mnOpções = new javax.swing.JMenu();
        mnuCancelarCadastro = new javax.swing.JMenuItem();
        mnuAlterarSenha = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        mnuSair = new javax.swing.JMenuItem();
        mnuInformacoes = new javax.swing.JMenu();
        mnuInformacao = new javax.swing.JMenuItem();

        jMenuItem1.setText("jMenuItem1");

        jMenu4.setText("jMenu4");

        jMenu6.setText("jMenu6");

        jMenuItem8.setText("jMenuItem8");

        jMenuItem6.setText("jMenuItem6");

        jMenuItem7.setText("jMenuItem7");

        jMenuItem12.setText("jMenuItem12");

        javax.swing.GroupLayout jFrame1Layout = new javax.swing.GroupLayout(jFrame1.getContentPane());
        jFrame1.getContentPane().setLayout(jFrame1Layout);
        jFrame1Layout.setHorizontalGroup(
            jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        jFrame1Layout.setVerticalGroup(
            jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("New News");

        jPanel1.setBackground(new java.awt.Color(255, 166, 78));

        jLabel2.setFont(new java.awt.Font("Ubuntu", 2, 24));
        jLabel2.setText("Bem Vindo ao New News o seu portal de notícias");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(127, 127, 127)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 585, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(905, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 583, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 551, Short.MAX_VALUE)
        );

        jLabel1.setText("Aqui você encontra o portal de notícias mais sofisticado,não fique com vergonha visite o nosso menu de opções!");

        jMenuBar1.setBackground(new java.awt.Color(152, 140, 17));

        mnCadastro.setText("CADASTRO ");

        mnuCadastreme.setText("CADASTRE-ME");
        mnuCadastreme.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCadastremeActionPerformed(evt);
            }
        });
        mnCadastro.add(mnuCadastreme);

        jMenuBar1.add(mnCadastro);

        mnMeuMomento.setText("MEU MOMENTO");
        mnMeuMomento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnMeuMomentoActionPerformed(evt);
            }
        });

        mnuPostar.setText("POSTAR");
        mnuPostar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuPostarActionPerformed(evt);
            }
        });
        mnMeuMomento.add(mnuPostar);

        mnuCadastrarCategorias.setText("CADASTRAR CATEGORIAS");
        mnuCadastrarCategorias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCadastrarCategoriasActionPerformed(evt);
            }
        });
        mnMeuMomento.add(mnuCadastrarCategorias);

        jMenuBar1.add(mnMeuMomento);

        mnForúm.setText("FÓRUM");

        mnuParticipar.setText("PARTICIPAR");
        mnuParticipar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuParticiparActionPerformed(evt);
            }
        });
        mnForúm.add(mnuParticipar);

        jMenuBar1.add(mnForúm);

        mnPesquisar.setText("PESQUISAR");

        mnuPostagem.setText("POSTAGENS");
        mnuPostagem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuPostagemActionPerformed(evt);
            }
        });
        mnPesquisar.add(mnuPostagem);

        jMenuBar1.add(mnPesquisar);

        mnOpções.setText("OPÇÕES");

        mnuCancelarCadastro.setText("CANCELAR CADASTRO");
        mnuCancelarCadastro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCancelarCadastroActionPerformed(evt);
            }
        });
        mnOpções.add(mnuCancelarCadastro);

        mnuAlterarSenha.setText("ALTERAR SENHA");
        mnuAlterarSenha.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuAlterarSenhaActionPerformed(evt);
            }
        });
        mnOpções.add(mnuAlterarSenha);
        mnOpções.add(jSeparator1);

        mnuSair.setText("SAIR");
        mnuSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuSairActionPerformed(evt);
            }
        });
        mnOpções.add(mnuSair);

        jMenuBar1.add(mnOpções);

        mnuInformacoes.setText("INFORMAÇÕES");

        mnuInformacao.setText("Sobre o sistema");
        mnuInformacao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuInformacaoActionPerformed(evt);
            }
        });
        mnuInformacoes.add(mnuInformacao);

        jMenuBar1.add(mnuInformacoes);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 825, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 209, Short.MAX_VALUE)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(333, 333, 333)
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(70, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mnMeuMomentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnMeuMomentoActionPerformed
    }//GEN-LAST:event_mnMeuMomentoActionPerformed

    private void mnuPostarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuPostarActionPerformed
        FrmPostar postar = new FrmPostar();
        postar.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        postar.setVisible(true);

    }//GEN-LAST:event_mnuPostarActionPerformed

    private void mnuSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuSairActionPerformed
        System.exit(0);
    }//GEN-LAST:event_mnuSairActionPerformed

    private void mnuCadastremeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCadastremeActionPerformed
        FrmCadastroUsuario cdUsuario = new FrmCadastroUsuario();
        cdUsuario.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        cdUsuario.setVisible(true);
    }//GEN-LAST:event_mnuCadastremeActionPerformed

    private void mnuAlterarSenhaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuAlterarSenhaActionPerformed
        FrmAlterarSenha alterarSenha = new FrmAlterarSenha();
        alterarSenha.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        alterarSenha.setVisible(true);
    }//GEN-LAST:event_mnuAlterarSenhaActionPerformed

    private void mnuCadastrarCategoriasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCadastrarCategoriasActionPerformed
        FrmCategoria categoria = new FrmCategoria();
        categoria.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        categoria.setVisible(true);
    }//GEN-LAST:event_mnuCadastrarCategoriasActionPerformed

    private void mnuParticiparActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuParticiparActionPerformed

        FrmForum forum = new FrmForum();
        forum.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        forum.setVisible(true);
    }//GEN-LAST:event_mnuParticiparActionPerformed

    private void mnuPostagemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuPostagemActionPerformed
       FrmPostagens postagens = new FrmPostagens();
       postagens.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
       postagens.setVisible(true);
    }//GEN-LAST:event_mnuPostagemActionPerformed

    private void mnuInformacaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuInformacaoActionPerformed
        FrmInformaçao infor = new FrmInformaçao();
        infor.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        infor.setVisible(true);
    }//GEN-LAST:event_mnuInformacaoActionPerformed

    private void mnuCancelarCadastroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCancelarCadastroActionPerformed
        FrmCancelarCadastro cancelar = new FrmCancelarCadastro();
        cancelar.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        cancelar.setVisible(true);
    }//GEN-LAST:event_mnuCancelarCadastroActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {

                FrmPrincipal principal = new FrmPrincipal();
                principal.setExtendedState(JFrame.MAXIMIZED_BOTH);
                principal.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JFrame jFrame1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JMenu mnCadastro;
    private javax.swing.JMenu mnForúm;
    private javax.swing.JMenu mnMeuMomento;
    private javax.swing.JMenu mnOpções;
    private javax.swing.JMenu mnPesquisar;
    private javax.swing.JMenuItem mnuAlterarSenha;
    private javax.swing.JMenuItem mnuCadastrarCategorias;
    private javax.swing.JMenuItem mnuCadastreme;
    private javax.swing.JMenuItem mnuCancelarCadastro;
    private javax.swing.JMenuItem mnuInformacao;
    private javax.swing.JMenu mnuInformacoes;
    private javax.swing.JMenuItem mnuParticipar;
    private javax.swing.JMenuItem mnuPostagem;
    private javax.swing.JMenuItem mnuPostar;
    private javax.swing.JMenuItem mnuSair;
    // End of variables declaration//GEN-END:variables
}
